<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : main
    Created on : 5 бер 2012, 18:48:17
    Author     : tanya
-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"          
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          version="2.0">
    <jsp:directive.page import="java.util.ArrayList"/>
    <jsp:directive.page import="java.util.Iterator"/>
    <jsp:directive.page import="entity.Users"/>
    <jsp:directive.page import="java.util.List"/>
    
    <jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/>

<html>
    <head>
        <meta charset="utf-8"/>
        <link rel="stylesheet"  href="admin_style.css"  type="text/css" />
        <title>User name</title>
       
    </head>
    <body>
        <header>
            <div id ="top_name"> <h1> User name</h1> </div>
            <div id="user-panel">
                <p> <a href="#">User name</a>
                    <a href="#">LogOut</a> </p>
            </div>
            <div id="menu">
                <div id="role"> <select name="role" size = "1"> 
                        <option value='1'>Customer</option>
                        <option value='2'>Warehouse Employee</option> 
                        <option value='3'>Courier</option> 
                        <option value='4'>Admin</option> 
                    </select> </div>
            </div>
        </header>
        <div id="main">
            <div id="un_text">
                  <c:if test="${not empty users}">
                <table>
                    <tr>
                        <td>Номер карточки</td><td>Счёт</td><td>Клиента ID</td><td>Баланс</td>
                    </tr>
                    <c:forEach var="user" items="${users}">
                    
                        <tr bgcolor="${stringColor}">
                            <td><c:out value="${user.getFirstName()}"/></td>
                            <td><c:out value="${user.getFirstName()}"/></td>
                            <td><c:out value="${user.getFirstName()}"/></td>
                            <td><c:out value="${user.getFirstName()}"/></td>
                 
                                </tr>
                    </c:forEach>
                </table>
            </c:if>
                <div>
                    <button type="submit" style="width:120px; background: #6699FF;" > <a href="/first/add_user"> Edit </a> </button>
                    <button type="submit" style="width:120px; background: #6699FF;" > <a href="/first/index"> Delete </a> </button>
                    <button type="submit" style="width:70px; background: #6699FF;" > <a href="/first/index"> OK </a> </button>
                </div>
            </div>
        </div>
    </body>
</html>

</jsp:root>
